#include "setclothstyle.h"
#include <QDebug>

SetClothStyle::SetClothStyle(QObject *parent) : QObject(parent)
{

}

SetClothStyle::~SetClothStyle(){

}

void SetClothStyle::setSizeStyle(const int & sizeStyle){

    m_SizeList.clear();
    if(0 == sizeStyle){
        m_SizeList << 1 << 1;
    }else if(1 == sizeStyle){
        m_SizeList << 2 << 1;
    }else if(2 == sizeStyle){
        m_SizeList << 2 << 2;
    }else if(3 == sizeStyle){
        m_SizeList << 3 << 3;
    }else{
        m_SizeList << 1 << 1;
    }

    this->m_SizeStyle = sizeStyle;

    emit sizeStyleChanged();
}

int SetClothStyle::getSizeStyle(){
    return m_SizeStyle;
}

QVariantList SetClothStyle::getSize(){
    return m_SizeList;
}

